package com.qubuyer.repository.entitys

import java.io.Serializable

/**
 * @author Susong
 * @date 创建时间:2019/3/29
 * @description 订单列表实体类
 * & @version
 */
class OrderEntity : Serializable {
    var id = 0
    var order_id = 0
    var order_sn: String? = null
    var user_id = 0
    var goods_price: String? = null
    var shipping_name: String? = null
    var shipping_price: String? = null
    var order_amount: String? = null
    var total_amount: String? = null
    var add_time: Long = 0
    var shipping_time = 0
    var confirm_time = 0
    var cancel_reason: String? = null
    var is_pay = 0
    var is_cancel = 0
    var is_receiving = 0
    var is_comment = 0
    var is_return = 0
    var is_complete = 0
    var state_brief: String? = null
    var is_delete = 0
    var is_extend_time = 0
    var is_invoice = 0
    var time_out: Long = 0
    var consignee: String? = null
    var full_address: String? = null
    var pay_name: String? = null
    var invoice_type = 0
    var invoice_title = 0
    var invoice_name: String? = null
    var invoice_mobile: String? = null
    var invoice_email: String? = null
    var invoice_taxpayer: String? = null
    var invoice_desc: String? = null
    var mobile: String? = null
    var user_note: String? = null
    var order_goods: List<SplitBean.OrderGoodBean>? = null
    var split: List<SplitBean>? = null
    var invoice_info: InvoiceInfo? = null

    class SplitBean : Serializable {
        var id = 0
        var rec_id = 0
        var order_id = 0
        var order_sn: String? = null
        var user_id = 0
        var order_status = 0
        var shipping_status = 0
        var pay_status = 0
        var consignee: String? = null
        var country = 0
        var province = 0
        var city = 0
        var district = 0
        var twon = 0
        var goods_id = 0
        var address: String? = null
        var zipcode: String? = null
        var mobile: String? = null
        var email: String? = null
        var shipping_code: String? = null
        var shipping_name: String? = null
        var pay_code: String? = null
        var pay_name: String? = null
        var invoice_type = 0
        var invoice_title = 0
        var invoice_name: String? = null
        var invoice_mobile: String? = null
        var invoice_email: String? = null
        var invoice_taxpayer: String? = null
        var invoice_desc: String? = null
        var goods_price: String? = null
        var shipping_price: String? = null
        var user_money: String? = null
        var coupon_price: String? = null
        var integral = 0
        var integral_money: String? = null
        var order_amount: String? = null
        var total_amount: String? = null
        var add_time = 0
        var shipping_time = 0
        var confirm_time = 0
        var pay_time = 0
        var transaction_id: Any? = null
        var prom_id = 0
        var prom_type = 0
        var order_prom_id = 0
        var order_prom_amount: String? = null
        var discount: String? = null
        var user_note: String? = null
        var cancel_reason: String? = null
        var admin_note: String? = null
        var is_distribut = 0
        var paid_money: String? = null
        var shop_id = 0
        var deleted = 0
        var is_pay = 0
        var is_cancel = 0
        var is_receiving = 0
        var is_comment = 0
        var is_return = 0
        var is_complete = 0
        var state_brief: String? = null
        var is_delete = 0
        var is_extend_time = 0
        var is_invoice = 0
        var goods_name: String? = null
        var goods_sn: String? = null
        var goods_num: String? = null
        var final_price: String? = null
        var member_goods_price: String? = null
        var give_integral: String? = null
        var item_id: String? = null
        var spec_key_name: String? = null
        var goods: GoodImg.GoodImgs? = null
        var order_goods: List<OrderGoodBean>? = null

        inner class GoodImg : Serializable {
            var goods_images: List<GoodImgs>? = null

            inner class GoodImgs : Serializable {
                var img_id: String? = null
                var image_url: String? = null
                var original_img: String? = null
            }
        }

        inner class OrderGoodBean : Serializable {
            /**
             * rec_id : 905
             * order_id : 959
             * goods_id : 68
             * goods_name : 圣女的救济 东野圭吾作品集 精装正版包邮 现当代日本文学悬疑推理侦探小说书籍 圣女的救赎 嫌疑人X的献身白夜行 新华书店文轩网
             * goods_num : 1
             * final_price : 0.00
             * goods_price : 1.00
             * cost_price : 0.00
             * member_goods_price : 1.00
             * item_id : 0
             * spec_key :
             * spec_key_name :
             * is_send : 0
             * goods : {"goods_id":68,"original_img":"http://api.qubuyer.comhttp://api.qubuyer.com/public/upload/goods/2019/04-08/f38d1e3acc1856683d3b073bbd23fa9a.jpg"}
             * comment_state : 1
             */
            var rec_id = 0
            var order_id = 0
            var goods_id = 0
            var goods_name: String? = null
            var goods_num = 0
            var final_price: String? = null
            var goods_price: String? = null
            var cost_price: String? = null
            var member_goods_price: String? = null
            var item_id = 0
            var spec_key: String? = null
            var spec_key_name: String? = null
            var is_send = 0
            var goods: GoodsBean? = null
            var comment_state = 0
            var is_return = 0
            var original_img_full: String? = null

            inner class GoodsBean : Serializable {
                /**
                 * goods_id : 68
                 * original_img : http://api.qubuyer.comhttp://api.qubuyer.com/public/upload/goods/2019/04-08/f38d1e3acc1856683d3b073bbd23fa9a.jpg
                 */
                var goods_id = 0
                var original_img: String? = null
                var goods_images: List<GoodImgs>? = null

                inner class GoodImgs : Serializable {
                    var original_img_full: String? = null
                }
            }
        }
    }

    companion object {
        /**
         * 订单分组状态
         */
        //全部
        const val ORDER_GROUP_STATUS_ALL = ""

        //待付款
        const val ORDER_GROUP_STATUS_OBLIGATION = "pay"

        //待发货
        const val ORDER_GROUP_STATUS_WAIT_SEND = "unreceiving"

        //待收货
        const val ORDER_GROUP_STATUS_WAIT_RECEIVING = "receiving"

        //待评价
        const val ORDER_GROUP_STATUS_TO_BE_COMMENT = "comment"

        //已完成
        const val ORDER_GROUP_STATUS_FINISH = "complete"
    }
}